package com.itheima.zhaohang.mymoreitemsclicke;

import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.List;

/**
 * Created by 赵航 on 2017/7/22.
 */

public class MyListViewAdapter extends BaseAdapter {
    private List<String> mStrings;

    public MyListViewAdapter(List<String> strings) {
        this.mStrings = strings;
    }

    @Override
    public int getCount() {
        return mStrings==null?0:mStrings.size();
    }

    @Override
    public Object getItem(int i) {
        return mStrings.get(i);
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        return null;
    }
}
